package cn.dev.mybatis.bean;

import cn.dev.mybatis.annotation.Delete;
import cn.dev.mybatis.annotation.Insert;
import cn.dev.mybatis.annotation.Select;
import cn.dev.mybatis.annotation.Update;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public enum SqlType {
    SELECT(Select.class),
    INSERT(Insert.class),
    UPDATE(Update.class),
    DELETE(Delete.class);

    private final Class<? extends Annotation> type;

    SqlType(Class<? extends Annotation> type) {
        this.type = type;
    }


    public Class<? extends Annotation> getType() {
        return type;
    }
}
